package design.mode.effective_java.chapter8.item52;

/**
 * @author ZhongMingde on 2021/8/31
 */

public class Wine {
    String name() {
        return "wine";
    }
}

class SparklingWine extends Wine {
    @Override
    String name() {
        return "sparkling wine";
    }
}

class Champagne extends SparklingWine{

    @Override
    String name() {
        return "champagne";
    }
}


